// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** deleteTrade POST /systrade/delete */
export async function deleteTradeUsingPost(body: string[], options?: { [key: string]: any }) {
  return request<API.TradeResult>('/systrade/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** insertTrade POST /systrade/insert */
export async function insertTradeUsingPost(body: API.TradeVO, options?: { [key: string]: any }) {
  return request<API.TradeResult>('/systrade/insert', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** fetchTradeList POST /systrade/list */
export async function fetchTradeListUsingPost(
  body: API.PageBeanTradeListQuery_,
  options?: { [key: string]: any },
) {
  return request<API.TradeResult>('/systrade/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateTrade POST /systrade/update */
export async function updateTradeUsingPost(body: API.TradeVO, options?: { [key: string]: any }) {
  return request<API.TradeResult>('/systrade/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
